<template>
	<view class="login">
		<FilletTabs :tabList="tabList" :activeTabIndex="activeTab" @handleChange="changeTabs" />
	</view>
</template>

<script>
	import FilletTabs from "@/components/fillet-tabs/fillet-tabs.vue"
	export default {
		components: {
			FilletTabs
		},
		data() {
			return {
				tabList: [{
						label: "测试1"
					},
					{
						label: "测试2"
					}
				],
				activeTab: 0
			};
		},
		onLoad() {},
		onShow() {},
		methods: {
			changeTabs(index) {
				this.activeTab = index
			}
		}
	};
</script>

<style lang="scss" scoped>
	.login {
		padding: 20rpx;
		background-color: #f5f5f5;
	}
</style>